# Project:	MapReduce
# Author:	gong_libin
# Date:		2013_07_11

CC = g++
CFLAGS = -g -Wall

MR_GLIB = /usr/lib
MR_GINC = /usr/include/MrInc

MR_LIBS =					\
	-lmrglobal				\
	-lpthread

MR_TARGETS =					\
	MrMonitor

MR_OBJECTS =					\
	$(MR_TARGETS).o

all: $(MR_TARGETS)

$(MR_OBJECTS): %.o: %.cpp
	$(CC) -c $(CFLAGS) -I$(MR_GINC) $< -o $@

$(MR_TARGETS): %: %.o
	$(CC) $(CFLAGS) $< -o $@ $(MR_LIBS)

clean:
	rm -rf $(MR_OBJECTS)
	rm -rf $(MR_TARGETS)
